[#include "/admin/common/layout.html"]
[@layout menus="1,49,80" title="列表"/]
[#macro table]
<div class="table-responsive">
    <table id="listTable" class="table table-striped table-bordered table-hover">
        <tr>
            <td><input type="checkbox" id="selectAll"></td>
            <td class="col-xs-2">敏感词</td>
            <td class="col-xs-2">替换词</td>
             <td class="col-xs-2">分类</td>
            <td class="col-xs-2 text-center">添加时间</td>
            <td class="col-xs-2 text-center">更新时间</td>
            <td class="col-xs-2 text-center">操作</td>
        </tr>
        [#if list??]
        [#list list as item]
        <tr id="trr${item.id!''}">
            <td><input type="checkbox" value="${item.id}" name="ids"></td>
            <td>
                ${item.word!""}
            </td>
             <td>
                ${item.replace!""}
            </td>
             <td>
                ${(item.category.name)!""}
            </td>
            <td class="text-center">
                ${item.addDate!""}
            </td>
            <td class="text-center">
                ${item.lastDate!""}
            </td>

            <td class="text-center">
                <div style="display: inline-block;">
                    <a class="btn btn-xs btn-info"
                       href="${siteurl}admin/sensitiveword/view_edit.htm?id=${item.id!''}&pageNumber=${page.pageNumber}">
                        <i class="icon-trash bigger-120">更新</i>
                    </a>
                    <a class="btn btn-xs btn-danger" onclick="return confirm('删除后无法恢复,确定要删除吗')"
                       href="${siteurl}admin/sensitiveword/model_delete.htm?id=${item.id!''}&pageNumber=${page.pageNumber}">
                        <i class="icon-trash bigger-120">删除</i>
                    </a>
                </div>
            </td>
        </tr>
        [/#list]
        [/#if]
    </table>
</div>
[/#macro]

[#macro searchitems]
[@searchitem name="word" value ="敏感词"/]
[/#macro]

[#macro scripts]
<!--js脚本位置  -->

[/#macro]

[#macro links]
<!--脚步及其css 导入路径  -->

[/#macro]
[#macro buttons]
<!--脚步及其css 导入路径  -->
<a class="btn btn-primary btn-sm" href="${siteurl}admin/sensitiveword/view_add.htm">
														<i class="ace-icon fa fa-pencil align-top bigger-125"></i>
														添加
												</a> <a class="disabled" id="deleteButton" href="#">
													<button   class="btn btn-danger btn-sm">
														<i class="ace-icon fa fa-trash-o align-top bigger-125"></i>
														批量删除
													</button>
</a>
[/#macro]
[#macro formaction]
${siteurl}admin/sensitiveword/view_list.htm
[/#macro]

